package com.note.mapper;

import com.note.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(String userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User get(Long userId);

    List<User> list();

    int count(Map<String,Object> map);

    int save(User user);

    int update(User user);

    int remove(Long userId);

    int batchRemove(Long[] userIds);

    Long[] listAllDept();
}